package com.mnf.server.processor.command;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.jetty.server.Server;

import com.mnf.server.event.handler.HttpServerEventHandler;
import com.mnf.server.model.Request;
import com.mnf.server.model.RequestType;

public class AbstractCommandProcessor implements CommandProcessor{
	private Server jettyServer;
	private List<HttpServerEventHandler> handlers = new ArrayList<>();
	
	public AbstractCommandProcessor(Server httpServer) {
		this.jettyServer = httpServer;
	}

	@Override
	public void processRequest(Request request) {
		if (request.getRequestType() == RequestType.COMMAND) {
		} else {
			throw new UnsupportedOperationException(request.getRequestType().name());
		}		
	}

	@Override
	public void addEventHandler(HttpServerEventHandler handler) {
		
	}
	
	

}
